package com.example.lib_base.app

import android.app.Application

import com.alibaba.android.arouter.launcher.ARouter
import com.tencent.mmkv.BuildConfig
import com.tencent.mmkv.MMKV


open class BaseApp :Application(){
    override fun onCreate() {
        super.onCreate()

        if (BuildConfig.DEBUG){
            ARouter.openDebug()
            ARouter.openLog()
        }
        ARouter.init(this)

        //初始化mmkv
        MMKV.initialize(this)
    }

    override fun onLowMemory() {
        super.onLowMemory()
    }

    override fun onTerminate() {
        super.onTerminate()
    }
}